# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icinga-php-library
pkgver=0.13.0
pkgrel=0
pkgdesc="Bundle for all Icinga PHP libraries"
url="https://github.com/Icinga/icinga-php-library"
arch="noarch !armhf !armv7 !s390x !x86"
license="MIT"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/icinga-php-library/archive/refs/tags/v$pkgver.tar.gz"

package() {
	install -dm755 "$pkgdir"/usr/share/icinga-php
	cp -rT . "$pkgdir"/usr/share/icinga-php/ipl
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
e811b66f9550972fc64f435b3a8fc7d263a2c1d0db86d34dd0179ee5c78babb2e19cd934e53a46d4e860d0bdc336619e9b67824cc4273ea049bea321a176acd4  icinga-php-library-0.13.0.tar.gz
"
